package cn.xm.pet.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.xm.basic.domain.BaseDomain;
import cn.xm.org.domain.Shop;
import cn.xm.user.domain.User;
import javafx.scene.control.cell.PropertyValueFactory;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author xm
 * @since 2022-10-29
 */
@Data
public class Pet extends BaseDomain {

    private static final long serialVersionUID = 1L;

    private String name;
    private BigDecimal saleprice;
    private String costprice;
    private String resources;
    /**
     * 状态：0下架，1上架
     */
    private Integer state = 0;
    /**
     * 类型id
     */
    private Long typeId;
    private Date offsaletime = new Date();
    private Date onsaletime = new Date();
    private Date createtime = new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;
    private Integer auditnum;
    private String note;

    private PetDetail detail;
    private Shop shop;
    private User user;
    private PetType petType;

}
